#ifndef BITWRITER_H_
#define BITWRITER_H_

class BitWriter {
private:
        char* toWrite;
        int actualPos;

public:
        BitWriter(char* source, int actualPos = 0);

        void putBit(bool state);
        long toLong();
        void close();
};

#endif /* BITWRITER_H_ */

